﻿// JScript 文件

function openNew(url,w,h,l,r)
{
    window.open(url,"","toolbar=auto,width="+w+",height="+h+",directories=no,status=no,left="+ l +",top="+ r +",scrollbars=yes,resizable=yes,menubar=no");
}
function ModalDialog(url,w,h)
{    
    window.parent.showModalDialog(url,"","dialogWidth="+w+"px,dialogHeight="+h+"px,help=no,status=no,scrollbars=yes");
}
function ShowDialog(url,w,h)
{    
    var obj = new Object();
    obj.name="ttop";
    window.showModalDialog(url,obj,"dialogWidth="+w+"px;dialogHeight="+h+"px");
}
//有返回值的打开窗口
function ModalDialogRet(url,w,h)
{    
    var ret=window.parent.showModalDialog(url,"","dialogWidth="+w+"px,dialogHeight="+h+"px,help=no,status=no,scrollbars=yes");
    return ret;
}
function ModelessDialog(url,w,h,l,t)
{
    showModelessDialog(url,"","dialogWidth="+w+",height="+h+",directories=no,status=no,dialogLeft="+ l +",dialogTop="+ t +",scrollbars=yes,resizable=yes");
}
function fullOpen(url)
{
    HeightValue=screen.height;
    WidthValue=screen.width;
    //newwin=window.open(url,"","toolbar=0,location=0,directories=0,status=1,menubar=0,resizable=1,left=0,top=0")
    newwin= new window.open(url,"","toolbar=0,location=0,directories=0,status=1,menubar=0,resizable=1,left=0,top=0,scrollbars=yes")
    //newwin.moveTo(-3,-3);
    //newwin.resizeTo(WidthValue+6,HeightValue-23);
}
function viewReports(studnetId)
{
    newwin=window.open("../Reports/Reports.aspx?rptId=11&StudentId="+studnetId ,"","toolbar=0,location=0,directories=0,status=1,menubar=0,resizable=1,left=0,top=0")
    newwin.moveTo(-3,-3);
    newwin.resizeTo(screen.width+6,screen.height-23);
}
function viewCom(comID)
{
    newwin=window.open("../ComManage/DoorEnrolMX.aspx?comID="+comID,"","toolbar=0,directories=no,status=1,resizable=yes,menubar=no")
    newwin.moveTo(-3,-3);
    newwin.resizeTo(screen.width+6,screen.height-23);
}